package com.njym.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.njym.vo.StatisticalAnalysisVo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created with IDEA
 * author:
 * Date:2018/9/11
 * Time:下午1:40
 */

public interface StatisticalAnalysisMapper extends BaseMapper<StatisticalAnalysisVo> {

    List<StatisticalAnalysisVo> getStatisticalAnalysis(@Param("start") Date start,
        @Param("end") Date end, @Param("orgId") String orgId, @Param("modeId") String modeId);

    String getStatisticalByChannelId(@Param("start") Date start,@Param("end") Date end, @Param("channelId") String channelId);

    List<StatisticalAnalysisVo> getStatisticalAnalysisChannel(@Param("start") Date start,
        @Param("end") Date end, @Param("orgId") String orgId, @Param("channelId") String channelId);

    List<StatisticalAnalysisVo> getStatisticalAnalysisDetail(Pagination page,@Param("start") Date start,
        @Param("end") Date end, @Param("orgId") String orgId, @Param("modeId") String modeId, @Param("channelId") String channelId);
}
